import Vue from 'vue'
import VueRouter from '../vueRouter'

import Home from '../components/Home.vue'
import About from '../components/About.vue'

Vue.use(VueRouter)

const routes = [
    {
        path:'/',
        name:'Home',
        component:Home
    },
    {
        path:'/about',
        name:'About',
        component:About
    }
]
const router = new VueRouter({
    mode:'hash',
    routes
})

export default router